using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using emp.DALFactory;
using emp.IDAL;
using emp.Model;
using System.Collections;

namespace emp.BLL
{
   public class Channel
    {
       public void Insert(emp.Model.Channel channel)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           dal.Insert(channel);
       }
       public IList getChannelList()
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           return dal.getChannelList();
       }
       public IList selectChannelList(string name, string date, string type)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           return dal.selectChannelList(name,date,type);
       }
       public emp.Model.Channel getChannelByUID(int cha_uid)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           return dal.getChannelByUID(cha_uid);
       }
       public void Update(emp.Model.Channel channel)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           dal.Update(channel);
       }
       public void Delete(int cha_uid)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           dal.Delete(cha_uid);
       }
       public IList getChannelByType(string cha_type)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           return dal.getChannelByType(cha_type);
       }
       public IList getChannelByType(string cha_type,string cam_uid)
       {
           IChannel dal = emp.DALFactory.Channel.Create();
           return dal.getChannelByType(cha_type, cam_uid);
       }
    }
}
